package com.bussiness.system.dao;

import com.bussiness.system.model.MyDeptUserEntity;
import com.bussiness.system.dto.MyDeptUserDto;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MyDeptUserDao {
    int deleteByPrimaryKey(Long id);

    int insert(MyDeptUserEntity record);

    int insertSelective(MyDeptUserEntity record);

    MyDeptUserEntity selectByPrimaryKey(Long id);

    List<MyDeptUserEntity>  findByDeptId(Long deptId);

    int updateByPrimaryKeySelective(MyDeptUserEntity record);

    int updateByPrimaryKey(MyDeptUserEntity record);

    int insertDeptUserList(List<MyDeptUserDto> myDeptRoleDtos);

    int deleteDeptUserByDeptId(Long deptId);
}